/**
 * 获取代办事项
 * @param {Number} page 页码
 * @param {Number} rows 每页数量
 * @param otime
 */
export function apiUserAppeal (page, rows, otime = 0) {
	return uni.$u.post('/api/gxkfs_admin/userAppeal', {page, rows, otime})
}

/** 
 * 交办事项
 * @param {Number} appeal_id 申诉事项ID
 * @param {Number} organization_id 交办人ID
 * @param {Number} type	记录类型:1=交办,2=解决
 * @param {String} message 留言及反馈
 */
export function apiAppealRecord (appeal_id, organization_id, type, message = '', extra_link, file_names, organization_classify_id) {
	return uni.$u.post('/api/gxkfs_admin/appealRecord', {appeal_id, organization_id, type, message, extra_link, file_names, organization_classify_id})
}

/**
 * 获取跟进记录
 */
export function apiGetAppealRecord (appeal_id) {
	return uni.$u.post('/api/gxkfs_admin/getAppealRecord', {appeal_id});
}

/**
 * 获取代办事项详情
 * @param {Number} id 申诉事项ID
 */
export function apiGetAppealByid (id) {
	return uni.$u.post('/api/gxkfs_admin/getAppealByid', {id})
}

/**
 * 根据标题搜索待办
 * @param {Strign} key 关键字
 */
export function apiGetAppealByTitle (key) {
	return uni.$u.post('/api/gxkfs_admin/seAppealByTitle', {key})
}